<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel=stylesheet href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Paliwa w Krakowie</title>
</head>
<body>
	<center><div class="top"><b>
		<% String pages = request.getParameter("page");
		if (pages != null) {
			if (pages.equals("login")) {%>
				<br>Logowanie
			<%}else if (pages.equals("map")) {%>
				<br>Mapa Cen
			<%}else if (pages.equals("offers")) {%>
				<br>Oferty
			<%}else if (pages.equals("predict")) {%>
				<br>Prognozy
			<%}else if (pages.equals("register")) {%>
				<br>Rejestracja
			<%}else if (pages.equals("join")) {%>
				<br>Współpraca
			<%}else if (pages.equals("contact")) {%>
				<br>Kontakt
			<%}else if (pages.equals("privacy")) {%>
				<br>Regulamin
			<%}else if (pages.equals("authors")) {%>
				<br>Autorzy
			<%}%>
		<%}else{ %>
			<br>Strona Główna
		<%}%>
	</b></div>
	<div class="menu"><%@include file="WEB-INF/menu/menuMain.jsp" %></div>
	<div class="mid">
		<%
		if (pages != null) {
			if (pages.equals("login")) {%>
				<%@include file="WEB-INF/pages/login.jsp" %>
			<%}else if (pages.equals("map")) {%>
				<%@include file="WEB-INF/pages/priceMap.jsp" %>
			<%}else if (pages.equals("offers")) {%>
				<%@include file="WEB-INF/pages/offers.jsp" %>
			<%}else if (pages.equals("predict")) {%>
				<%@include file="WEB-INF/pages/prediction.jsp" %>
			<%}else if (pages.equals("register")) {%>
				<%@include file="WEB-INF/pages/registerUser.jsp" %>
			<%}else if (pages.equals("join")) {%>
				<%@include file="WEB-INF/pages/registerStation.jsp" %>
			<%}else if (pages.equals("contact")) {%>
				<%@include file="WEB-INF/pages/contact.jsp" %>
			<%}else if (pages.equals("privacy")) {%>
				<%@include file="WEB-INF/pages/privacy.jsp" %>
			<%}else if (pages.equals("authors")) {%>
				<%@include file="WEB-INF/pages/authors.jsp" %>
			<%}%>
		<%}else{ %>
			<%@include file="WEB-INF/pages/news.jsp" %>
		<%}%>
	</div>
	<div class="box">
		<a href="index.jsp?page=privacy">Regulamin</a> | 
		<a href="index.jsp?page=authors">Autorzy</a> | 
		<a href="index.jsp?page=join">Współpraca</a> | 
		<a href="index.jsp?page=contact">Kontakt</a>
	</div>
	</center>
    <footer>Copyright &copy; 2013 — wszystkie prawa zastrzeżone</footer>
</body>
</html>